//
//  MKDateManager.h
//  MKTravel
//
//  Created by song zhang on 2018/9/28.
//  Copyright © 2018年 song zhang. All rights reserved.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface MBDateManager : NSObject
 
/// 将data类型的时间根据格式转换成时间
+ (NSString *)dateTransformString:(NSDate *) date style:(NSString *)style;

/// 根据给定的格式将string类型的时间转换成data类型的时间
+(NSDate *)stringTransformDate:(NSString *)strTime style:(NSString *)style;

/// 将时间转化为时间戳
+(NSString *) shortStringFromDate:(NSDate*) date;

/// 将时间戳转化为date
+(NSDate *)shortDateFromString:(NSString *)dateStr;

/// 将时间戳根据格式转换成时间
+(NSString *)shortDateFromString:(NSString *)dateStr style:(NSString *)style;

#pragma mark - 隔多少天
+(NSInteger)pleaseInsertStarTime:(NSDate *)startDate andInsertEndTime:(NSDate *)endDate;

#pragma mark -  判断一个日期是周几
+ (NSString *)weekdayStringFromDate:(NSDate *)date;
@end

NS_ASSUME_NONNULL_END
